﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 开关机日志, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_POWER_SWITCH_LOG_Metadata))]
    public partial class HRDS_POWER_SWITCH_LOG
    {
        /// <summary>
        /// 创建<see cref="HRDS_POWER_SWITCH_LOG"/>的实例
        /// </summary>
        public HRDS_POWER_SWITCH_LOG()
        {
        }
        /// <summary>
        /// 主键
        /// </summary>
        public virtual string GUID { get; set; }

        		
        /// <summary>
        /// 操作时间
        /// </summary>
        public virtual DateTime TIMESTAMP { get; set; }

    		
        /// <summary>
        /// 站点名称
        /// </summary>
        public virtual string STATIONNAME { get; set; }

    		
        /// <summary>
        /// 站点编号
        /// </summary>
        public virtual string MFID { get; set; }

    		
        /// <summary>
        /// 操作类型(开机/关机)
        /// </summary>
        public virtual string OPERATIONTYPE { get; set; }

    		
        /// <summary>
        /// APPNAME
        /// </summary>
        public virtual string APPNAME { get; set; }

    		
        /// <summary>
        /// OPERATIONWAY
        /// </summary>
        public virtual string OPERATIONWAY { get; set; }

    		
        public override bool Equals(object obj)
        {
            HRDS_POWER_SWITCH_LOG model = obj as HRDS_POWER_SWITCH_LOG;
            return model != null && (ReferenceEquals(GUID,null) ? ReferenceEquals(model.GUID, null) : GUID.Equals(model.GUID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(GUID, null) ? 0 : GUID.GetHashCode());
            return hash;
        }
    }
}
